﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="TMA.MODEL"
                   namespace="TMA.MODEL.Entity">

	<class name="Functionary" table="dbo.Tbl_Funcionarios">

		<id name="Id_Functionary" column="IdFuncionario" type="decimal"></id>
		<property name="Id_BiometricReader" column="CodEmpleado" type="int"/>
		<property name="Id_Company" column="Empresa" type="int"/>
		<property name="Id_Headquarter" column="NumeroSede" type="int"/>
		<property name="Name" column="NomFuncionario" type="string"/>
		<property name="LastName" column="ApeFuncionario" type="string"/>
    <property name="Id_Dependency" column="CodigoDependencia" type="int"/>
		<property name="BirthdayMonth" column="MesCumpleaños" type="int"/>
		<property name="BirthdayDay" column="DiaCumpleaños" type="int"/>
		<property name="Address" column="DireccionCorrespondencia" type="string"/>
		<property name="Id_City" column="Ciudad" type="int"/>
		<property name="PostalZone" column="ZonaPostal" type="int"/>
		<property name="AirSection" column="ApartadoAereo" type="string"/>
		<property name="TelephoneNumber" column="TelCasa" type="int"/>
		<property name="CelphoneNumber" column="Celular" type="float"/>
		<property name="BeeperNumber" column="Beeper" type="string"/>
		<property name="BeeperCode" column="CodigoBeeper" type="string"/>
		<property name="FaxNumber" column="Fax" type="int"/>
		<property name="Email" column="eMail" type="string"/>
		<property name="Password" column="Password" type="string"/>
		<property name="Id_Charge" column="CodigoCargo" type="int"/>
		<property name="ByPayroll" column="PorNomina" type="boolean"/>
		<property name="ByHour" column="PorHoras" type="boolean"/>
		<property name="IntegralSalary" column="SalarioIntegral" type="boolean"/>
		<property name="ContractClass" column="ClaseContrato" type="int"/>
		<property name="IsActive" column="Activo" type="boolean"/>
    <property name="Id_CostCenter" column="CentroCosto" type="int"/>
		<property name="Turn" column="Turno" type="string"/>
		<property name="ExtensionNumber" column="Extension" type="int"/>
		<property name="BossName" column="JefeInmediato" type="string"/>
		<property name="BossExtensionNumber" column="ExtensionJefe" type="int"/>
		<property name="Observations" column="Observaciones" type="string"/>
		<property name="IndexReader" column="IndiceLector" type="int"/>
		<property name="Id_Between" column="IdBtw" type="int"/>
		<property name="FingerPrint" column="Huella" type="binary"/>
		<property name="Photo" column="Foto" type="binary"/>
		<property name="Id_UserCreateRegistration" column="UsuarioCrea" type="string"/>
		<property name="DateCreateRegistration" column="FechaCrea" type="datetime"/>
		<property name="Id_UserModifyRegistration" column="UsuarioModifica" type="string"/>
		<property name="DateModifyRegistration" column="FechaModifica" type="datetime"/>

	</class>

</hibernate-mapping>
